<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>DOM Manipulation</title>
</head>
<body>
	<header>
		Name:<input type="text" id="text"/>
		<button type="button" onclick="OnClick()">Click Me</button>
	</header>
	
	<script>
	function OnClick()
	{
	var x=document.getElementById("text").value;
	alert(x);
	}
	</script>
</body>
</html>